package com.he.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/12/18 15:56
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(indexName = "log")
public class StudentES {
    @Id
    private Integer id;

    @Field(type = FieldType.Keyword)
    private String name;

    @Field(type = FieldType.Keyword)
    private Integer price;
}
